package com.vsen.lpr.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.vsen.lpr.entity.BaseEntity;

import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 检查数据记录表
 * </p>
 *
 * @author yy
 * @since 2021-09-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_measure_record")
public class MeasureRecord extends BaseEntity<MeasureRecord> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 用户ID
     */
    @TableField("user_id")
    private String userId;
    /**
     * 高压
     */
    @TableField("high_bp")
    private BigDecimal highBp;
    /**
     * 低压
     */
    @TableField("low_bp")
    private BigDecimal lowBp;
    /**
     * 心跳
     */
    private BigDecimal hp;
    /**
     * 体重
     */
    private BigDecimal weight;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private String createTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
